using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO;
using Volo.Abp.Application.Services;

namespace ThridGroup.ERP.ProductionSystem
{
    /// <summary>
    /// 物料产品分类服务接口
    /// </summary>
    public interface IMaterialTypeService : IApplicationService
    {
        /// <summary>
        /// 添加物料分类
        /// </summary>
        Task<int> AddMaterialType(MaterialTypeDto materialTypeDto);

        /// <summary>
        /// 获取所有物料分类
        /// </summary>
        Task<List<MaterialTypeDto>> GetMaterialTypes();

        /// <summary>
        /// 获取单个物料分类
        /// </summary>
        Task<MaterialTypeDto> GetMaterialType(int id);

        /// <summary>
        /// 更新物料分类
        /// </summary>
        Task<int> UpdateMaterialType(MaterialTypeDto materialTypeDto);

        /// <summary>
        /// 删除物料分类
        /// </summary>
        Task DeleteMaterialType(int id);

        /// <summary>
        /// 获取物料分类树形结构
        /// </summary>
        Task<List<MaterialTypeDto>> GetMaterialTypeTree();
    }
} 